package com.liuqi.openai.data.message;

import static com.liuqi.openai.data.message.ChatMessageType.SYSTEM;

/**
 * 系统消息
 *
 * @author liuqi
 * @date 2025/7/19
 **/
public class SystemMessage extends ChatMessage {

    SystemMessage(String text) {
        super(text, SYSTEM);
    }

    public static SystemMessage from(String text) {
        return new SystemMessage(text);
    }

    public static SystemMessage systemMessage(String text) {
        return from(text);
    }

    @Override
    public String toString() {
        return "SystemMessage{" +
                "text='" + text + '\'' +
                ", type=" + type +
                '}';
    }
}
